package com.hnevc.chenqi;
/**
 * File对于文件进行遍历
 */

import java.io.File;

public class EXample04 {
    public static void main(String[] args) {
        File file =new File("C:\\mysql-5.6.21");
        if (file.isDirectory()){
           File[] names =file.listFiles();
            for (File name:names){
                System.out.println(name);
            }
        }
    }
}
